import Vue from 'vue';
import VueRouter from 'vue-router';
import home from './view/home.vue';
import menber from './view/menber.vue';
import shopcar from './view/shopcar.vue';
import search from './view/search.vue';
import newList from './component/newLIst/newList.vue';
import newInfo from './component/newLIst/newInfo.vue';
import photoList from './component/photoList/photo.vue';
import navList from './component/photoList/nav.vue';
import shopList from './component/shop/shoping.vue';
import shonav from './component/shop/shoplist.vue';
import shopnav1 from './component/shop/shopNav1.vue';
import shopnav2 from './component/shop/shopNav2.vue';



Vue.use(VueRouter);


const router = new VueRouter({
    routes: [{ path: '/', redirect: '/home', component: home },
        { path: '/home', component: home },
        { path: '/menber', component: menber },
        { path: '/shopcar', component: shopcar },
        { path: '/search', component: search },
        { path: '/home/newlist', component: newList },
        { path: "/home/newInfo/:id", component: newInfo },
        { path: '/home/photoList', component: photoList },
        { path: "/home/navList/:id", component: navList },
        { path: '/home/shopList', component: shopList },
        { path: '/home/shopnav/:id', component: shonav },
        { path: '/home/shopnavqwe/:id', component: shopnav1, name: "shopnav1" },
        { path: '/home/shopnavasd/:id', component: shopnav2, name: "shopnav2" }



    ],
    linkActiveClass: 'mui-active'
})
export default router